package com.gcd.gym.service.impl;

import com.gcd.gym.mapper.LoginMapper;
import com.gcd.gym.model.Admin;
import com.gcd.gym.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    private LoginMapper loginMapper;

    @Autowired
    public void setAccountMapper(LoginMapper loginMapper) {
        this.loginMapper = loginMapper;
    }

    @Override
    public Admin findByPhone(String phone) {
        return loginMapper.findByPhone( phone);
    }
}
